<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>filter过滤器</title>
    <link rel="stylesheet" href="../../static/css/index.css">
    <style>
        .main p:not(:first-child) span {
            color: blue;
        }
    </style>
</head>
<body>
<div class="main">
    <p><span>{{ greet|cut:"," }}</span></p>
    <p>生日：<span>{{ birthday|date:"Y/m/d" }}</span></p>
    <p>当前时间：<span>{{ birthday|date:"Y/m/d H:i" }}</span></p>
    <p>个人简介：<span>{{ profile|default:"这个家伙很懒，什么都没写" }}</span></p>
    <div>{{ h5|safe }}</div>
</div>
</body>
</html>